﻿@model LX.Core.Query.PagedList<S4Store.Domain.Administrator>
@{
    ViewBag.Title = "Query";
    Layout = null;
}
<div class="pageContent" ratio="*">
<div class="grid">
		<table class="table" width="100%" layoutH="138" cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="80">帐号</th>
				<th width="80">姓名</th>
				<th width="80">职位</th>
				<th width="150">所属店</th>
				<th width="100">状态</th>
			</tr>
		</thead>
		<tbody>
            @foreach(var user in this.Model.Data){
                <tr>
				    <td style=" text-align:center"><input name="ids" value="@user.Id" type="checkbox"></td>
				    <td>@user.UserName</td>
				    <td>@user.Name</td>
				    <td>@user.Position.GetDescription()</td>
				    <td>@(user.Store == null ? "" : user.Store.Name)</td>	
				    <td>
                    @if(user.IsClose){
                        <text><span style='color:red'>帐号关闭</span></text>
                     }else{
                       <text>正常</text>
                    }
                    </td>
			    </tr>	
            }					
		</tbody>
	</table>
</div>
</div>
@Html.Partial("Pager", new S4Store.Models.PagerModel { Page = Model.Page, Total = Model.Total, PageSize = Model.PageSize })	


